<template>
  <div class="about">
    <my-input v-model="msg"></my-input>
    <p @click="clickFtn">{{msg}}</p>
  </div>
</template>
<script>
import myInput from '../components/myInput.vue'
import { ref } from 'vue';
export default {
  components: { myInput },
  setup(props) { // 组合api
  // let const  let 声明变量 const 声明常量 var 声明变量的
    const msg = ref('dfghyuj');
    const clickFtn = () => {
      alert('dfghjk')
    }
    return{
      msg,
      clickFtn
    }
  }
}
</script>